package com.example.demo.controller;

import com.example.demo.entity.Incident;
import com.example.demo.entity.User;
import com.example.demo.mapper.ERSMapper;
import com.example.demo.service.ERSService;
import org.apache.ibatis.annotations.Insert;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.*;

/**
 * @program: demo
 * @description: Emergency response system 紧急处置系统
 * @author: Lelouch
 * @create: 2024-08-30 17:54
 **/
@RestController
@RequestMapping("/ers")
public class ERSController {

    @Autowired
    ERSService ersService;

//    旅游事件标准管理系统
    @GetMapping("/std")
    public List<Incident> std(){
        List<Incident> incidentsList = ersService.std();
        return incidentsList;
    }
}
